<style type="text/css">
.page{
  margin: 20px 0;
}
.page a{
  border: 1px solid #009E94;
  padding: 10px 20px;
  margin: 0 2px;
}
.current{
  background: #009E94;
  color: #fff;
  padding: 10px 20px;
  margin: 0 2px;
  border: 1px solid #009E94;
}
.page{
  margin-top: 30px;
}

</style>
<div class="main fly-user-main layui-clear">
      <include file='./App/Home/View/side.html' />
      
      <div class="site-mobile-shade">
      </div>
      <div class="fly-panel fly-panel-user" pad20>
          <div class="layui-tab layui-tab-brief" lay-filter="user" id="LAY_msg"
          style="margin-top: 15px;">
            <?php if($count==0){ ?>
              <div id="LAY_minemsg" style="margin-top: 10px;">
              <div class="fly-none">您暂时没有最新消息</div>
              </div>
            <?php }else{ ?>
              <a href="{:U('home/userCenter/delMsg',['del'=>2])}">
                <button class="layui-btn layui-btn-danger" id="LAY_delallmsg">
                清空全部消息
                </button>
              </a>
              <div id="LAY_minemsg" style="margin-top: 10px;">
                <ul class="mine-msg">
                  <?php foreach ($msg as $v):?>
                    <li data-id="43893">
                      <blockquote class="layui-elem-quote">
                        <a href="{:U('home/userCenter/center',array('id'=>$v['uid']))}" target="_blank">
                          <cite>
                            <?php echo $v['nickname']; ?>
                          </cite>
                        </a>
                        回答了您的求解
                        <a target="_blank" href="{:U('home/discuss/index',array('qid'=>$v['qid']))}">
                          <cite>
                            <?php echo $v['title']; ?>
                          </cite>
                        </a>
                      </blockquote>
                      <p>
                        <span>
                          <?php echo Ctime($v['create_time']); ?>
                        </span>
                        <a href="{:U('home/userCenter/delMsg',array('aid'=>$v['aid']))}" class="layui-btn layui-btn-small layui-btn-danger fly-delete">
                          删除
                        </a>
                      </p>
                    </li>
                  <?php endforeach; ?>
                </ul>
                <div class="page">
                  <?php echo $show; ?>
                </div>
              </div>
            <?php  } ?>

          </div>
      </div>

<script type="text/javascript">
 /* $('.fly-delete').click(function (){
    that = $(this);
    $.ajax({
      url: "{:U('home/userCenter/delMsg')}",
      type: 'POST',
      dataType: 'json',
      data: {aid: that.children('.aid').val()},
    })
    .done(function(respones) {
      if(respones==0){

      }
    })
    .fail(function() {
      console.log("error");
    })
  })*/
</script>
    

  
